import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Topic } from './entities/topic.entity';
import { TopicService } from './topic.service';
import { TopicController } from './topic.controller';
import { WxUserModule } from '../wxuser/wxuser.module'; // 导入 WxUserModule

import { FavoriteService } from '../favorite/favorite.service'; // 引入 FavoriteService
import { Favorite } from '../favorite/entities/favorite.entity'; // 引入 Favorite 实体
@Module({
  imports: [TypeOrmModule.forFeature([Topic, Favorite]), WxUserModule],
  providers: [TopicService, FavoriteService],
  controllers: [TopicController],
})
export class TopicModule {}
